home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / hplip / ui4 / settingsdialog_base.py < prev    next >
Encoding:
Python Source  |  2009-04-14  |  17.1 KB  |  283 lines

  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'ui4/settingsdialog_base.ui'
  4. #
  5. # Created: Tue Feb 17 11:36:14 2009
  6. #      by: PyQt4 UI code generator 4.3.3
  7. #
  8. # WARNING! All changes made in this file will be lost!
  9.  
  10. from PyQt4 import QtCore, QtGui
  11.  
  12. class Ui_SettingsDialog_base(object):
  13.     def setupUi(self, SettingsDialog_base):
  14.         SettingsDialog_base.setObjectName("SettingsDialog_base")
  15.         SettingsDialog_base.resize(QtCore.QSize(QtCore.QRect(0,0,500,540).size()).expandedTo(SettingsDialog_base.minimumSizeHint()))
  16.  
  17.         self.gridlayout = QtGui.QGridLayout(SettingsDialog_base)
  18.         self.gridlayout.setObjectName("gridlayout")
  19.  
  20.         self.TabWidget = QtGui.QTabWidget(SettingsDialog_base)
  21.         self.TabWidget.setObjectName("TabWidget")
  22.  
  23.         self.AutoRefresh = QtGui.QWidget()
  24.         self.AutoRefresh.setObjectName("AutoRefresh")
  25.  
  26.         self.gridlayout1 = QtGui.QGridLayout(self.AutoRefresh)
  27.         self.gridlayout1.setObjectName("gridlayout1")
  28.  
  29.         self.textLabel3_2_2 = QtGui.QLabel(self.AutoRefresh)
  30.         self.textLabel3_2_2.setWordWrap(False)
  31.         self.textLabel3_2_2.setObjectName("textLabel3_2_2")
  32.         self.gridlayout1.addWidget(self.textLabel3_2_2,0,0,1,1)
  33.  
  34.         self.line1_2_2 = QtGui.QFrame(self.AutoRefresh)
  35.         self.line1_2_2.setFrameShape(QtGui.QFrame.HLine)
  36.         self.line1_2_2.setFrameShadow(QtGui.QFrame.Sunken)
  37.         self.line1_2_2.setObjectName("line1_2_2")
  38.         self.gridlayout1.addWidget(self.line1_2_2,1,0,1,1)
  39.  
  40.         self.AutoRefreshCheckBox = QtGui.QCheckBox(self.AutoRefresh)
  41.         self.AutoRefreshCheckBox.setObjectName("AutoRefreshCheckBox")
  42.         self.gridlayout1.addWidget(self.AutoRefreshCheckBox,2,0,1,1)
  43.  
  44.         self.RefreshRateGroupBox = QtGui.QGroupBox(self.AutoRefresh)
  45.         self.RefreshRateGroupBox.setEnabled(True)
  46.         self.RefreshRateGroupBox.setObjectName("RefreshRateGroupBox")
  47.  
  48.         self.gridlayout2 = QtGui.QGridLayout(self.RefreshRateGroupBox)
  49.         self.gridlayout2.setObjectName("gridlayout2")
  50.  
  51.         self.textLabel1_4 = QtGui.QLabel(self.RefreshRateGroupBox)
  52.         self.textLabel1_4.setWordWrap(False)
  53.         self.textLabel1_4.setObjectName("textLabel1_4")
  54.         self.gridlayout2.addWidget(self.textLabel1_4,0,0,1,1)
  55.  
  56.         self.hboxlayout = QtGui.QHBoxLayout()
  57.         self.hboxlayout.setObjectName("hboxlayout")
  58.  
  59.         self.AutoRefreshRateSpinBox = QtGui.QSpinBox(self.RefreshRateGroupBox)
  60.         self.AutoRefreshRateSpinBox.setEnabled(False)
  61.         self.AutoRefreshRateSpinBox.setWrapping(True)
  62.         self.AutoRefreshRateSpinBox.setButtonSymbols(QtGui.QAbstractSpinBox.PlusMinus)
  63.         self.AutoRefreshRateSpinBox.setMinimum(10)
  64.         self.AutoRefreshRateSpinBox.setMaximum(300)
  65.         self.AutoRefreshRateSpinBox.setProperty("value",QtCore.QVariant(30))
  66.         self.AutoRefreshRateSpinBox.setObjectName("AutoRefreshRateSpinBox")
  67.         self.hboxlayout.addWidget(self.AutoRefreshRateSpinBox)
  68.         self.gridlayout2.addLayout(self.hboxlayout,0,1,1,1)
  69.  
  70.         spacerItem = QtGui.QSpacerItem(40,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
  71.         self.gridlayout2.addItem(spacerItem,0,2,1,1)
  72.         self.gridlayout1.addWidget(self.RefreshRateGroupBox,3,0,1,1)
  73.  
  74.         self.RefreshTypeGroupBox = QtGui.QGroupBox(self.AutoRefresh)
  75.         self.RefreshTypeGroupBox.setObjectName("RefreshTypeGroupBox")
  76.  
  77.         self.gridlayout3 = QtGui.QGridLayout(self.RefreshTypeGroupBox)
  78.         self.gridlayout3.setObjectName("gridlayout3")
  79.  
  80.         self.RefreshCurrentRadioButton = QtGui.QRadioButton(self.RefreshTypeGroupBox)
  81.         self.RefreshCurrentRadioButton.setEnabled(False)
  82.         self.RefreshCurrentRadioButton.setChecked(True)
  83.         self.RefreshCurrentRadioButton.setObjectName("RefreshCurrentRadioButton")
  84.         self.gridlayout3.addWidget(self.RefreshCurrentRadioButton,0,0,1,1)
  85.  
  86.         self.RefreshAllRadioButton = QtGui.QRadioButton(self.RefreshTypeGroupBox)
  87.         self.RefreshAllRadioButton.setEnabled(False)
  88.         self.RefreshAllRadioButton.setObjectName("RefreshAllRadioButton")
  89.         self.gridlayout3.addWidget(self.RefreshAllRadioButton,1,0,1,1)
  90.         self.gridlayout1.addWidget(self.RefreshTypeGroupBox,4,0,1,1)
  91.  
  92.         spacerItem1 = QtGui.QSpacerItem(446,41,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
  93.         self.gridlayout1.addItem(spacerItem1,5,0,1,1)
  94.         self.TabWidget.addTab(self.AutoRefresh,"")
  95.  
  96.         self.SystemTray = QtGui.QWidget()
  97.         self.SystemTray.setObjectName("SystemTray")
  98.  
  99.         self.gridlayout4 = QtGui.QGridLayout(self.SystemTray)
  100.         self.gridlayout4.setObjectName("gridlayout4")
  101.  
  102.         self.textLabel3_2_3 = QtGui.QLabel(self.SystemTray)
  103.         self.textLabel3_2_3.setWordWrap(False)
  104.         self.textLabel3_2_3.setObjectName("textLabel3_2_3")
  105.         self.gridlayout4.addWidget(self.textLabel3_2_3,0,0,1,1)
  106.  
  107.         self.line1_2_3 = QtGui.QFrame(self.SystemTray)
  108.         self.line1_2_3.setFrameShape(QtGui.QFrame.HLine)
  109.         self.line1_2_3.setFrameShadow(QtGui.QFrame.Sunken)
  110.         self.line1_2_3.setObjectName("line1_2_3")
  111.         self.gridlayout4.addWidget(self.line1_2_3,1,0,1,1)
  112.  
  113.         self.SystemTraySettings = SystrayFrame(self.SystemTray)
  114.  
  115.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Expanding)
  116.         sizePolicy.setHorizontalStretch(0)
  117.         sizePolicy.setVerticalStretch(0)
  118.         sizePolicy.setHeightForWidth(self.SystemTraySettings.sizePolicy().hasHeightForWidth())
  119.         self.SystemTraySettings.setSizePolicy(sizePolicy)
  120.         self.SystemTraySettings.setFrameShadow(QtGui.QFrame.Raised)
  121.         self.SystemTraySettings.setObjectName("SystemTraySettings")
  122.         self.gridlayout4.addWidget(self.SystemTraySettings,2,0,1,1)
  123.         self.TabWidget.addTab(self.SystemTray,"")
  124.  
  125.         self.Commands = QtGui.QWidget()
  126.         self.Commands.setObjectName("Commands")
  127.  
  128.         self.gridlayout5 = QtGui.QGridLayout(self.Commands)
  129.         self.gridlayout5.setObjectName("gridlayout5")
  130.  
  131.         self.textLabel3_2_2_2 = QtGui.QLabel(self.Commands)
  132.         self.textLabel3_2_2_2.setWordWrap(False)
  133.         self.textLabel3_2_2_2.setObjectName("textLabel3_2_2_2")
  134.         self.gridlayout5.addWidget(self.textLabel3_2_2_2,0,0,1,2)
  135.  
  136.         self.line1_2_2_3 = QtGui.QFrame(self.Commands)
  137.         self.line1_2_2_3.setFrameShape(QtGui.QFrame.HLine)
  138.         self.line1_2_2_3.setFrameShadow(QtGui.QFrame.Sunken)
  139.         self.line1_2_2_3.setObjectName("line1_2_2_3")
  140.         self.gridlayout5.addWidget(self.line1_2_2_3,1,0,1,2)
  141.  
  142.         self.groupBox_3 = QtGui.QGroupBox(self.Commands)
  143.         self.groupBox_3.setObjectName("groupBox_3")
  144.  
  145.         self.gridlayout6 = QtGui.QGridLayout(self.groupBox_3)
  146.         self.gridlayout6.setObjectName("gridlayout6")
  147.  
  148.         self.textLabel1_2 = QtGui.QLabel(self.groupBox_3)
  149.         self.textLabel1_2.setEnabled(False)
  150.         self.textLabel1_2.setWordWrap(False)
  151.         self.textLabel1_2.setObjectName("textLabel1_2")
  152.         self.gridlayout6.addWidget(self.textLabel1_2,0,0,1,1)
  153.  
  154.         self.PrintCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
  155.         self.PrintCommandLineEdit.setEnabled(False)
  156.         self.PrintCommandLineEdit.setObjectName("PrintCommandLineEdit")
  157.         self.gridlayout6.addWidget(self.PrintCommandLineEdit,1,0,1,1)
  158.  
  159.         self.textLabel2_2 = QtGui.QLabel(self.groupBox_3)
  160.         self.textLabel2_2.setWordWrap(False)
  161.         self.textLabel2_2.setObjectName("textLabel2_2")
  162.         self.gridlayout6.addWidget(self.textLabel2_2,2,0,1,1)
  163.  
  164.         self.ScanCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
  165.         self.ScanCommandLineEdit.setObjectName("ScanCommandLineEdit")
  166.         self.gridlayout6.addWidget(self.ScanCommandLineEdit,3,0,1,1)
  167.  
  168.         self.textLabel3_3 = QtGui.QLabel(self.groupBox_3)
  169.         self.textLabel3_3.setEnabled(False)
  170.         self.textLabel3_3.setWordWrap(False)
  171.         self.textLabel3_3.setObjectName("textLabel3_3")
  172.         self.gridlayout6.addWidget(self.textLabel3_3,4,0,1,1)
  173.  
  174.         self.SendFaxCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
  175.         self.SendFaxCommandLineEdit.setEnabled(False)
  176.         self.SendFaxCommandLineEdit.setObjectName("SendFaxCommandLineEdit")
  177.         self.gridlayout6.addWidget(self.SendFaxCommandLineEdit,5,0,1,1)
  178.  
  179.         self.textLabel4 = QtGui.QLabel(self.groupBox_3)
  180.         self.textLabel4.setEnabled(False)
  181.         self.textLabel4.setWordWrap(False)
  182.         self.textLabel4.setObjectName("textLabel4")
  183.         self.gridlayout6.addWidget(self.textLabel4,6,0,1,1)
  184.  
  185.         self.AccessPCardCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
  186.         self.AccessPCardCommandLineEdit.setEnabled(False)
  187.         self.AccessPCardCommandLineEdit.setObjectName("AccessPCardCommandLineEdit")
  188.         self.gridlayout6.addWidget(self.AccessPCardCommandLineEdit,7,0,1,1)
  189.  
  190.         self.textLabel5 = QtGui.QLabel(self.groupBox_3)
  191.         self.textLabel5.setEnabled(False)
  192.         self.textLabel5.setWordWrap(False)
  193.         self.textLabel5.setObjectName("textLabel5")
  194.         self.gridlayout6.addWidget(self.textLabel5,8,0,1,1)
  195.  
  196.         self.MakeCopiesCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
  197.         self.MakeCopiesCommandLineEdit.setEnabled(False)
  198.         self.MakeCopiesCommandLineEdit.setObjectName("MakeCopiesCommandLineEdit")
  199.         self.gridlayout6.addWidget(self.MakeCopiesCommandLineEdit,9,0,1,1)
  200.         self.gridlayout5.addWidget(self.groupBox_3,2,0,1,2)
  201.  
  202.         spacerItem2 = QtGui.QSpacerItem(20,60,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
  203.         self.gridlayout5.addItem(spacerItem2,3,1,1,1)
  204.  
  205.         self.SetDefaultsButton = QtGui.QPushButton(self.Commands)
  206.         self.SetDefaultsButton.setEnabled(True)
  207.         self.SetDefaultsButton.setObjectName("SetDefaultsButton")
  208.         self.gridlayout5.addWidget(self.SetDefaultsButton,4,0,1,1)
  209.  
  210.         spacerItem3 = QtGui.QSpacerItem(20,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
  211.         self.gridlayout5.addItem(spacerItem3,4,1,1,1)
  212.         self.TabWidget.addTab(self.Commands,"")
  213.         self.gridlayout.addWidget(self.TabWidget,0,0,1,2)
  214.  
  215.         spacerItem4 = QtGui.QSpacerItem(301,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
  216.         self.gridlayout.addItem(spacerItem4,1,0,1,1)
  217.  
  218.         self.StdButtons = QtGui.QDialogButtonBox(SettingsDialog_base)
  219.         self.StdButtons.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.NoButton|QtGui.QDialogButtonBox.Ok)
  220.         self.StdButtons.setCenterButtons(False)
  221.         self.StdButtons.setObjectName("StdButtons")
  222.         self.gridlayout.addWidget(self.StdButtons,1,1,1,1)
  223.         self.textLabel1_4.setBuddy(self.AutoRefreshRateSpinBox)
  224.         self.textLabel1_2.setBuddy(self.PrintCommandLineEdit)
  225.         self.textLabel2_2.setBuddy(self.ScanCommandLineEdit)
  226.         self.textLabel3_3.setBuddy(self.SendFaxCommandLineEdit)
  227.         self.textLabel4.setBuddy(self.AccessPCardCommandLineEdit)
  228.         self.textLabel5.setBuddy(self.MakeCopiesCommandLineEdit)
  229.  
  230.         self.retranslateUi(SettingsDialog_base)
  231.         self.TabWidget.setCurrentIndex(2)
  232.         QtCore.QObject.connect(self.AutoRefreshCheckBox,QtCore.SIGNAL("toggled(bool)"),self.AutoRefreshRateSpinBox.setEnabled)
  233.         QtCore.QObject.connect(self.AutoRefreshCheckBox,QtCore.SIGNAL("toggled(bool)"),self.RefreshAllRadioButton.setEnabled)
  234.         QtCore.QObject.connect(self.AutoRefreshCheckBox,QtCore.SIGNAL("toggled(bool)"),self.RefreshCurrentRadioButton.setEnabled)
  235.         QtCore.QObject.connect(self.StdButtons,QtCore.SIGNAL("accepted()"),SettingsDialog_base.accept)
  236.         QtCore.QObject.connect(self.StdButtons,QtCore.SIGNAL("rejected()"),SettingsDialog_base.reject)
  237.         QtCore.QMetaObject.connectSlotsByName(SettingsDialog_base)
  238.         SettingsDialog_base.setTabOrder(self.TabWidget,self.AutoRefreshCheckBox)
  239.         SettingsDialog_base.setTabOrder(self.AutoRefreshCheckBox,self.AutoRefreshRateSpinBox)
  240.         SettingsDialog_base.setTabOrder(self.AutoRefreshRateSpinBox,self.RefreshCurrentRadioButton)
  241.         SettingsDialog_base.setTabOrder(self.RefreshCurrentRadioButton,self.RefreshAllRadioButton)
  242.         SettingsDialog_base.setTabOrder(self.RefreshAllRadioButton,self.PrintCommandLineEdit)
  243.         SettingsDialog_base.setTabOrder(self.PrintCommandLineEdit,self.ScanCommandLineEdit)
  244.         SettingsDialog_base.setTabOrder(self.ScanCommandLineEdit,self.SendFaxCommandLineEdit)
  245.         SettingsDialog_base.setTabOrder(self.SendFaxCommandLineEdit,self.AccessPCardCommandLineEdit)
  246.         SettingsDialog_base.setTabOrder(self.AccessPCardCommandLineEdit,self.MakeCopiesCommandLineEdit)
  247.         SettingsDialog_base.setTabOrder(self.MakeCopiesCommandLineEdit,self.SetDefaultsButton)
  248.         SettingsDialog_base.setTabOrder(self.SetDefaultsButton,self.StdButtons)
  249.  
  250.     def retranslateUi(self, SettingsDialog_base):
  251.         SettingsDialog_base.setWindowTitle(QtGui.QApplication.translate("SettingsDialog_base", "HP Device Manager - Settings", None, QtGui.QApplication.UnicodeUTF8))
  252.         self.textLabel3_2_2.setText(QtGui.QApplication.translate("SettingsDialog_base", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
  253.         "p, li { white-space: pre-wrap; }\n"
  254.         "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
  255.         "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Configure if and when devices are automatically refreshed</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
  256.         self.AutoRefreshCheckBox.setText(QtGui.QApplication.translate("SettingsDialog_base", "&Enable device auto refresh", None, QtGui.QApplication.UnicodeUTF8))
  257.         self.RefreshRateGroupBox.setTitle(QtGui.QApplication.translate("SettingsDialog_base", "Refresh Interval", None, QtGui.QApplication.UnicodeUTF8))
  258.         self.textLabel1_4.setText(QtGui.QApplication.translate("SettingsDialog_base", "&Refresh every:", None, QtGui.QApplication.UnicodeUTF8))
  259.         self.AutoRefreshRateSpinBox.setSuffix(QtGui.QApplication.translate("SettingsDialog_base", " sec", None, QtGui.QApplication.UnicodeUTF8))
  260.         self.RefreshTypeGroupBox.setTitle(QtGui.QApplication.translate("SettingsDialog_base", "Devices to Refresh", None, QtGui.QApplication.UnicodeUTF8))
  261.         self.RefreshCurrentRadioButton.setText(QtGui.QApplication.translate("SettingsDialog_base", "Only ¤tly selected device", None, QtGui.QApplication.UnicodeUTF8))
  262.         self.RefreshAllRadioButton.setText(QtGui.QApplication.translate("SettingsDialog_base", "&All devices", None, QtGui.QApplication.UnicodeUTF8))
  263.         self.TabWidget.setTabText(self.TabWidget.indexOf(self.AutoRefresh), QtGui.QApplication.translate("SettingsDialog_base", "Auto Refresh", None, QtGui.QApplication.UnicodeUTF8))
  264.         self.textLabel3_2_3.setText(QtGui.QApplication.translate("SettingsDialog_base", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
  265.         "p, li { white-space: pre-wrap; }\n"
  266.         "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
  267.         "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Configure the behavior of the HP Status Service (hp-systray)</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
  268.         self.TabWidget.setTabText(self.TabWidget.indexOf(self.SystemTray), QtGui.QApplication.translate("SettingsDialog_base", "System Tray Icon", None, QtGui.QApplication.UnicodeUTF8))
  269.         self.textLabel3_2_2_2.setText(QtGui.QApplication.translate("SettingsDialog_base", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
  270.         "p, li { white-space: pre-wrap; }\n"
  271.         "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
  272.         "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Configure what commands to run for device actions</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
  273.         self.groupBox_3.setTitle(QtGui.QApplication.translate("SettingsDialog_base", "Commands", None, QtGui.QApplication.UnicodeUTF8))
  274.         self.textLabel1_2.setText(QtGui.QApplication.translate("SettingsDialog_base", "&Print:", None, QtGui.QApplication.UnicodeUTF8))
  275.         self.textLabel2_2.setText(QtGui.QApplication.translate("SettingsDialog_base", "&Scan:", None, QtGui.QApplication.UnicodeUTF8))
  276.         self.textLabel3_3.setText(QtGui.QApplication.translate("SettingsDialog_base", "Send PC &Fax:", None, QtGui.QApplication.UnicodeUTF8))
  277.         self.textLabel4.setText(QtGui.QApplication.translate("SettingsDialog_base", "&Unload Photo Cards:", None, QtGui.QApplication.UnicodeUTF8))
  278.         self.textLabel5.setText(QtGui.QApplication.translate("SettingsDialog_base", "Make &Copies:", None, QtGui.QApplication.UnicodeUTF8))
  279.         self.SetDefaultsButton.setText(QtGui.QApplication.translate("SettingsDialog_base", "Set &Defaults", None, QtGui.QApplication.UnicodeUTF8))
  280.         self.TabWidget.setTabText(self.TabWidget.indexOf(self.Commands), QtGui.QApplication.translate("SettingsDialog_base", "Commands (Advanced)", None, QtGui.QApplication.UnicodeUTF8))
  281.  
  282. from systrayframe import SystrayFrame
  283.